package com.xc.common;

/**
 * Created by xiongcan on 2017/12/26.
 */
public enum ResponseCode {


    SUCCESS(0 , "SUCCESS"),
    ERROR(1 , "ERROR"),
    NEED_LOGIN(10 , "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2 , "ILLEGAL_ARGUMENT")
    ;

    private int code;
    private String msg;

    ResponseCode(int code , String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }

}
